<!--
 * @Descripttion:
 * @Author: 张明尧
 * @Date: 2020-05-25 09:53:10
 * @LastEditTime: 2020-10-28 17:09:18
-->
<!DOCTYPE html>
<html>
  <%
    var cdn = htmlWebpackPlugin.options.cdn || '',
        server = htmlWebpackPlugin.options.server,
        js = htmlWebpackPlugin.files.js,
        css = htmlWebpackPlugin.files.css;

  %>
  <head>
    <title>报价单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport"
      content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=11,chrome=1" />
    <style>
      html,
      body {
        width: 100%;
        margin: 0;
        padding: 0;
      }

    </style>
    <link href="<%=cdn %>/static/ux/element-ui/index.css" rel="stylesheet">
    <link href="<%=cdn %>/static/fonts/font.css" rel="stylesheet">
    <script>
      //服务地址
      window.SERVER_URL = '<%=server %>';//服务地址
      window.CDN_URL = '<%=cdn %>';//cdn地址
    </script>
    <!-- 引入样式 -->
    <!-- 进行判断, 判断引入的是 cdn  -->
    <%for(var i=0;i<css.length;i++){var file = css[i]%>
    <link href="<%=file %>" rel="stylesheet">
    <%}%>
  </head>
  <body>
  </body>
  <script src="<%=cdn %>/static/ux/vue/vue.min.js"></script>
  <script src="<%=cdn %>/static/ux/element-ui/index.js"></script>
  <!-- 引入js -->
  <%for(var i=0;i<js.length;i++){var file = js[i]%>
  <script src="<%=file %>"></script>
  <%}%>
  <script>
    // var paramsStr = window.location.href.split("?")[1];
    // let params = paramsStr.split("&");
    // params = params.reduce((accu, str) => {
    //   let [key, value] = str.split("=");
    //   accu[key] = value;
    //   return accu;
    // }, {});
    // new Vue({
    //   el: "#app",
    //   data: function() {
    //     return {};
    //   },
    //   // mounted() {
    //   //   this.$children[0].params = params;
    //   // }
    // });
  </script>
</html>
